<script lang="ts">
    import { InnerPopup } from "../Common/InnerPopup";
    import type { TooltipProps } from "./Tooltip";

    let { visible = $bindable(), ...props }: TooltipProps = $props();
    let pop: any;

    export const updatePosition = () => pop.update();
</script>

<InnerPopup bind:this={pop} clsPrefix="cm-tooltip" {...props} align={props.align || "top"} arrow={props.arrow || true} varName="tooltip" />
